//
//  UIViewController+TYZPage.m
//  AVfoundationDemo
//
//  Created by TangBin on 2019/8/15.
//  Copyright © 2019 TangBin. All rights reserved.
//

#import "UIViewController+TYZPage.h"

@implementation UIViewController (TYZPage)

- (TYZPageViewController *)tyz_pageViewController
{
    return (TYZPageViewController *)self.parentViewController;
}

- (TYZPageConfigration *)config
{
    return self.tyz_pageViewController.config;
}

- (TYZPageScrollView *)bgScrollView
{
    return self.tyz_pageViewController.bgScrollView;
}

- (TYZPageScrollMenuView *)scrollMenuView
{
    return self.tyz_pageViewController.scrollMenuView;
}

- (NSMutableArray<__kindof UIViewController *> *)controllerList
{
    return self.tyz_pageViewController.controllerList;
}

- (NSMutableArray<NSString *> *)titleList
{
    return self.tyz_pageViewController.titlesList;
}

@end





































